﻿using Dapper_Core.Basic;
using Dapper_Core.DAL.Interface;
using System;
using System.Collections.Generic;
using System.Text;

namespace Dapper_Core.DAL.Impl
{
    public static class SyncReferenceHelper
    {
        /// <summary>
        /// 同步属性，对新和旧DTO进行属性的补全
        /// </summary>
        /// <param name="model">需要补全属性的DTO</param>
        public static void SyncReferenceProperty(BaseModel model)
        {
            if (model == null) return;
            ISyncReference syncReference = SyncReferenceFactory.GetInstance(model);
            syncReference.SyncReferenceProperty(model);
        }
    }
}
